<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/head.jsp"%>
<script src="DateTime.js" language="javascript"></script>
</head>
<body class="mainBody">
<form method="post" name="myform" id="myform">
<table border="0" cellpadding="0" cellspacing="0" class="formTable">
    <tr class="tableTitleTR2">
        <td colspan="3">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="47" class="tableTitleLeft2">&#160;</td>
                    <td class="tableTitle2">时间控件</td>
                    <td width="33" class="tableTitleRight2">&#160;</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="formTableL">&#160;</td>
        <td width="100%" class="formTableC">
            <table align="center" border="0" cellpadding="0" cellspacing="2" class="formTableCore">
                <tr>
                    <td class="formLabel">默认</td>
                    <td class="formField"><input id="d11" type="text" class="Wdate" onClick="WdatePicker({isShowWeek:true})"/></td>
                    <td class="formLabel">时分秒</td>
                    <td class="formField">
                        <input type="text" id="d20" name="d20" class="Wdate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                    </td>
                    <td class="formLabel">0分0秒开始</td>
                    <td class="formField">
                        <input type="text" id="d21" class="Wdate" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    </td>
                </tr>
                <tr>
                    <td class="formLabel">onpicked </td>
                    <td class="formField" colspan="5">
                        <input type="text" class="Wdate" id="d122" onFocus="WdatePicker({isShowWeek:true,onpicked:function(){$dp.$('d122_1').value=$dp.cal.getP('W','W');$dp.$('d122_2').value=$dp.cal.getP('W','WW');}})"/>
                        &nbsp;&nbsp;
                        您选择了第
                        <input type="text" id="d122_1" size="3"/>
                        (W格式)周, 另外您可以使用WW格式:
                        <input  type="text" id="d122_2" size="3"/>
                        周
                    </td>
                </tr>
            </table>
        </td>
        <td class="formTableR">&#160;</td>
    </tr>
    <tr>
        <td class="formTableLB"></td>
        <td class="formTableB"></td>
        <td class="formTableRB"></td>
    </tr>
</table>
</form>
</body>
</html>
